#ifndef DIALOG_DATATRANS_H
#define DIALOG_DATATRANS_H
#include <QSqlQuery>
#include <QSqlError>
#include <QDialog>
#include "threadyb.h"
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkInterface>
#include <QNetworkRequest>

#include "ys_bzgl_3103.h"
#include "yb_form_qlsjsc.h"

namespace Ui {
class Dialog_datatrans;
}

class Dialog_datatrans : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_datatrans(QWidget *parent = nullptr);
    ~Dialog_datatrans();
public slots:
    void closeEvent(QCloseEvent *event);


signals:

    void destroyW();

private slots:

    QString calc_sm3(QString, QString);
    void chang(QString);

    int save_rec_hist(QString fld_name, //字段名
                       QString fld_new, //新值
                       QString fld_old, //旧值
                       QString tmstmp, //时间戳
                       QString clinic_code);//

    void on_pbRun_clicked();

    void on_pbExit_clicked();

    void on_toolButton_clicked();

    void on_pbShowFields_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::Dialog_datatrans *ui;
    QSqlQuery *qro, *qrot , *qro0;
    QSqlQuery *qrm, *qrmt, *qrm_new, *qrm_old;

    QString sq;

    QNetworkRequest request;
    QNetworkAccessManager manager ;

    Ys_bzgl_3103 * pop_3103;

    //upload0506(QString busi, QString outtype, QString reci_no)

    Form_qlsjsc * jxc;

};

#endif // DIALOG_DATATRANS_H

